﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace HeathCareSystem.wuc
{
    public partial class wucTimKiemBenh : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnTim_Click(object sender, EventArgs e)
        {
            string tenBenh = txtTenBenh.Text;
            string trieuChung = txtTrieuChung.Text;
            LoaiBenhBUS lbBus = new LoaiBenhBUS();
            DataTable dt = lbBus.TimLoaiBenh(tenBenh, trieuChung);
            gvKetQua.DataSource = dt;
            gvKetQua.DataBind();
        }
    }
}